home *** CD-ROM | disk | FTP | other *** search
- function FComboBoxClass()
- {
- _global._popUpLevel = _global._popUpLevel != undefined ? _global._popUpLevel + 1 : 20000;
- this.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel,_popUpLevel);
- var testContainer = this.superHolder.createEmptyMovieClip("testCont",20000);
- var testBox = testContainer.attachMovie("FBoundingBoxSymbol","boundingBox_mc",0);
- if(testBox._name == undefined)
- {
- this.superHolder.removeMovieClip();
- this.superHolder = this._parent.createEmptyMovieClip("superHolder" + _popUpLevel,_popUpLevel);
- }
- else
- {
- testContainer.removeMovieClip();
- }
- if(this.rowCount == undefined)
- {
- this.rowCount = 8;
- this.editable = false;
- }
- this.itemSymbol = "FComboBoxItemSymbol";
- this.init();
- this.permaScrollBar = false;
- this.proxyBox_mc.gotoAndStop(1);
- this.width = this._width;
- this.height = this.proxyBox_mc._height * this._yscale / 100;
- var i = 0;
- while(i < this.labels.length)
- {
- this.addItem(this.labels[i],this.data[i]);
- i++;
- }
- this.lastSelected = 0;
- this.selectItem(0);
- this._xscale = this._yscale = 100;
- this.opened = false;
- this.setSize(this.width);
- this.highlightTop(false);
- if(this.changeHandler.length > 0)
- {
- this.setChangeHandler(this.changeHandler);
- }
- this.onUnload = function()
- {
- this.superHolder.removeMovieClip();
- };
- this.setSelectedIndex(0,false);
- this.value = "";
- this.focusEnabled = true;
- this.changeFlag = false;
- }
-